From 47a066703b6725df987b8fa9cedac48c6e7788f0 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 2 Mar 2007 15:08:26 +0000 Subject: [PATCH] xend: Fix startup when dom0 does not see all physical cpus. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendNode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/python/xen/xend/XendNode.py b/tools/python/xen/xend/XendNode.py index f550a467a9..07c814be7b 100644 --- a/tools/python/xen/xend/XendNode.py +++ b/tools/python/xen/xend/XendNode.py @@ -97,6 +97,10 @@ class XendNode: for u in self.cpus.keys(): log.error(self.cpus[u]) number = self.cpus[u]['number'] + # We can run off the end of the cpuinfo list if domain0 does not + # have #vcpus == #pcpus. In that case we just replicate pcpu0 info. + if not cpuinfo.has_key(number): + number = 0 log.error(number) log.error(cpuinfo) self.cpus[u].update( -- 2.30.2